#include "StdAfx.h"
#include "joust.h"
#include "defender.h"
#include "machine/williamsmachine.h"

static InputPort Port1 =
	{
		{
		{"Left",			I_UP,			0x01,	I_HIGH},
		{"Right",		I_DOWN,		0x02,	I_HIGH},
		{"Button",		I_B1,			0x04,	I_HIGH},
		{"Unused",		0,				0x08,	I_HIGH},
		{"Start 2",		I_START2,	0x10,	I_HIGH},
		{"Start 1",		I_START1,	0x20,	I_HIGH},
		{"Unused",		0,				0x40,	I_HIGH},
		{"Unused",		0,				0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Cjoust::Cjoust()
{
SetName("joust");						//set romset name
SetScreen(304,256);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,0);
SetPort(2,&defenderPort3);
AddROM("3006-22.10b",	0xD000,0x1000,0x3f1c4f89,ROM_CPU1);
AddROM("3006-23.11b",	0xE000,0x1000,0xea48b359,ROM_CPU1);
AddROM("3006-24.12b",	0xF000,0x1000,0xc710717b,ROM_CPU1);
AddROM("3006-13.1b",		0x10000,0x1000,0xfe41b2af,ROM_CPU1);
AddROM("3006-14.2b",		0x11000,0x1000,0x501c143c,ROM_CPU1);
AddROM("3006-15.3b",		0x12000,0x1000,0x43f7161d,ROM_CPU1);
AddROM("3006-16.4b",		0x13000,0x1000,0xdb5571b6,ROM_CPU1);
AddROM("3006-17.5b",		0x14000,0x1000,0xc686bb6b,ROM_CPU1);
AddROM("3006-18.6b",		0x15000,0x1000,0xfac5f2cf,ROM_CPU1);
AddROM("3006-19.7b",		0x16000,0x1000,0x81418240,ROM_CPU1);
AddROM("3006-20.8b",		0x17000,0x1000,0xba5359ba,ROM_CPU1);
AddROM("3006-21.9b",		0x18000,0x1000,0x39643147,ROM_CPU1);
AddROM("joust.snd",		0xF000,0x1000,0xf1835bdd,ROM_CPU2);
AddROM("decoder.4",		0x0000,0x0200,0xe6631c23,ROM_PROM);
AddROM("decoder.6",		0x0200,0x0200,0x83faf25e,ROM_PROM);
}

CMachine *Cjoust::CreateMachine()
{
return(new CWilliamsMachine());
}
